﻿using DAQ.Common;
using System;
using System.Collections;

namespace DAQ.PROTOCOL
{

    public class DEVICE_INFORMATION_READ
    {
        byte[] _bytes = new byte[12];
        public static byte[] GetSendBytes(byte Addr)
        {
            return BasicUtil.AppendChecksum(Addr, 0x3E);
        }
        public DEVICE_INFORMATION_READ(byte[] srcBytes)
        {
            Array.Copy(srcBytes, _bytes, srcBytes.Length);
        }

        public byte CWF2000_SW_VERSION { get { return _bytes.SubByte(0, 1)[0]; } }

        public int CWF2000_SW_UNDER_VERSION { get { return _bytes.SubByte(1, 1)[0]; } }

        public int BOARD_HW_VERSION { get { return _bytes[6]; } }

        public int BOOTLOADER_SW_VERSION { get { return _bytes[7]; } }
    }
}
    

    


